﻿using Manhua2.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace Manhua2.DataModel
{
    public class ViewPageModel : BindableBase
    {
        private float _scale = 1.0f;

        public float Scale
        {
            get { return _scale; }
            //set { base.SetProperty(ref this._scale, value, "Scale"); }
            set { this._scale = value; }
        }

        private float _maxScale = 2.0f;

        public float MaxScale
        {
            get { return _maxScale; }
            set { base.SetProperty(ref this._maxScale, value, "MaxScale"); }
        }

        private float _minScale = 0.5f;

        public float MinScale
        {
            get { return _minScale; }
            set { base.SetProperty(ref this._minScale, value, "MinScale"); }
        }

        private bool _loading = true;
        public bool Loading
        {
            get { return _loading; }
            set { base.SetProperty(ref this._loading, value, "Loading"); }
        }

        private Visibility _isBtnVisibility = Visibility.Collapsed;
        public Visibility IsBtnVisibility
        {
            get { return _isBtnVisibility; }
            set { base.SetProperty(ref this._isBtnVisibility, value, "IsBtnVisibility"); }
        }

        private string comicTitle = string.Empty;
        public string ComicTitle
        {
            get { return comicTitle; }
            set { base.SetProperty(ref this.comicTitle, value, "Title"); }
        }

        private string totalPage = string.Empty;
        public string TotalPage 
        {
            get { return totalPage; }
            set { base.SetProperty(ref this.totalPage, value, "TotalPage"); }
        }

        private string page = string.Empty;
        public string Page
        {
            get { return page; }
            set { base.SetProperty(ref this.page, value, "Page"); }
        }
    }
}
